package com.chen.scaffolding.nacosserver.service.impl;

import com.chen.scaffolding.nacosconfig.entity.Authority;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 调用权限服务
 * @author :master
 */
@Service
@FeignClient(value = "nacos-config", url = "http://localhost:8002/config")
public interface OpenFeignAuthorityService {


    @RequestMapping("addAuthority")
    public String addAuthority (@RequestBody Authority authority);


    @RequestMapping("upateAuthority")
    public String upateAuthority (@RequestBody Authority authority);
}
